package design.Command;

/**
 * Created by looper on 2017/8/21.
 */
public class Invoker {
  private Command command;

  public Invoker(Command command) {
    this.command = command;
  }

  //boss发出命令的方法
  public void action() {
    command.execute();
  }
}
